/**
 * 订单管理 接口
 * 
 */
import request from '@/utils/request';
let api = {};
// 订单列表
api.purchaseList = function (data = {}) {
 return request({
   url: "/admin/purchase/index",
   method: "get",
   params: data 
 });
};
// 订单字典
api.dict = function (data = {}) {
 return request({
   url: "/admin/purchase/dict",
   method: "get",
   params: data 
 });
};
// 新建订单
api.purchaseCreate = function (data = {}) {
  return request({
    url: "/admin/purchase/create",
    method: "post",
    data 
  });
 };

export default api;
